Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 4: Building Text Shapes

../ch04/04fig09.gif
Figure 4.9

Two text shapes with different types of justification

04fig09.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        Shape {
            appearance DEF White Appearance {
                material Material { }
            }
            geometry Text {
                string "First"
                fontStyle FontStyle {
                    family  "SERIF"
                    style   "ITALIC"
                    justify "END"
                    size    1.0
                }
            }
        },
        Shape {
            appearance USE White
            geometry Text {
                string "Second"
                fontStyle FontStyle {
                    family  "SANS"
                    style   "BOLD"
                    justify "BEGIN"
                    size    1.0
                }
            }
        }
    ]
}